﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _006_007详解类型变量与与对象_3_类型存储
{
    internal class Program
    {
        static void Main(string[] args)
        {
            //类分配内存  
            //Student Stu ;

            int x=100;
            //C#中不会默认生成默认值
            //Console.WriteLine(x);
            object obj;
            obj = x;
            int b;
            b = (int)x;
            Console.WriteLine(b); //拆箱 将堆上的值先拷贝,如何再返回到栈中

            //此时涉及装箱和拆箱  

        }
    }

    class Student
    {
        uint ID;
        ushort Score;
    }
}
